<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">

<meta http-equiv="Expires" content="0">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store">

<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script type="text/javascript">var ctx = '${ctx}';</script>
<script src="${ctx}/static/hszadmin/layui/layui.js" charset="utf-8"></script>
<script src="${ctx}/static/js/utils.js" charset="utf-8"></script>
<link rel="stylesheet" href="${ctx}/static/hszadmin/layui/css/layui.css" />
<link rel="shortcut icon" href="${ctx}/static/images/redfinger.ico" type="image/x-icon" />
<script type="text/javascript">
    layui.config({
        base: '${ctx}/static/hszadmin/' //静态资源所在路径
    }).extend({
        index: '/lib/index' //主入口模块
    });

    /**
     * 打开标签页面
     * @param url 网址
     * @param title 标题
     */
    var openTabsPage = function (url, title) {};
    if(parent.openTabsPage && typeof parent.openTabsPage === 'function'){
        openTabsPage = parent.openTabsPage;
    }
    /**
     * 关闭标签页
     * @param url 当前标签页打开时的网址
     */
    var closeTabsPage = function(url){};
    if(parent.closeTabsPage && typeof parent.closeTabsPage === 'function'){
        closeTabsPage = parent.closeTabsPage;
    }
    /**
     * 关闭当前标签页
     */
    var closeCurrentTabsPage = function(){};
    if(parent.closeCurrentTabsPage && typeof parent.closeCurrentTabsPage === 'function'){
        closeCurrentTabsPage = parent.closeCurrentTabsPage;
    }
</script>
<script type="text/html" id="enableStatusTpl">
    {{#  if(d.enableStatus == 1){ }}
    <span class="layui-btn layui-btn-green layui-btn-xs" style="width: 60px">启用</span>
    {{#  } else if(d.enableStatus == 0){ }}
    <span class="layui-btn layui-btn-primary layui-btn-xs" style="width: 60px">禁用</span>
    {{#  }  }}
</script>